using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameScene : ISceneState
{
    public GameScene()
    {
        SceneName = "Game";
    }
    public override void EnterScene()
    {
        GameRoot.GetInstance().UIManager_Root.Push(new GamePanel());
        GameRoot.GetInstance().GetComponent<AudioSource>().Stop();
        UIMethod.GetInstance().GetOrAddComponent<SpriteRenderer>(Player.GetInstance().gameObject).sprite = GameRoot.GetInstance().AssetsFactory.LoadSprite(GameRoot.GetInstance().Playername);
    }

    public override void ExitScene()
    {

    }

    public override void SceneUpdate()
    {

    }
}

